/* 无限滚动容器 */
.infinite-scroll-container {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  margin-right: 0;
  padding-right: 0;
}

/* 滚动条样式 */
.infinite-scroll-container::-webkit-scrollbar {
  width: 8px;
  position: absolute;
  right: 0;
}

.infinite-scroll-container::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 0;
}

.infinite-scroll-container::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #4ecdc4, #45b7d1);
  border-radius: 0;
  border: none;
  transition: all 0.3s ease;
}

.infinite-scroll-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #45b7d1, #4ecdc4);
}

.infinite-scroll-container::-webkit-scrollbar-corner {
  background: transparent;
}

/* 确保滚动条贴着边缘 */
.infinite-scroll-container {
  scrollbar-width: thin;
  scrollbar-color: #4ecdc4 transparent;
}

/* 隐藏默认滚动条（Firefox） */
.infinite-scroll-container {
  scrollbar-gutter: stable;
}

/* 状态指示器 */
.infinite-scroll-status {
  padding: 20px;
  text-align: center;
  color: #888;
}

/* 加载中状态 */
.infinite-scroll-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
}

.infinite-scroll-loading .loading-spinner {
  font-size: 1.2em;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 结束状态 */
.infinite-scroll-end {
  padding: 10px;
  font-style: italic;
  color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .infinite-scroll-container::-webkit-scrollbar {
    width: 6px;
    position: absolute;
    right: 0;
  }
  
  .infinite-scroll-status {
    padding: 15px;
  }
  
  .infinite-scroll-loading {
    gap: 8px;
  }
  
  .infinite-scroll-loading .loading-spinner {
    font-size: 1em;
  }
}
